<?php
include_once '../Config/config.php';
include_once '../Config/conexion.php';

$titulo_page = 'Subir Papers';
include_once '../Shared/header.php';
session_destroy();
unset($_COOKIE);
?>
<script type="text/javascript">
	$(document).ready(function(){
		$("#frm").submit(function(){
			$(this).ajaxSubmit({         
				success: function(responseText, statusText, xhr, $form)  { 
					var obj = jQuery.parseJSON(responseText);
										
					//Resultado de la subida del paper
					$(".formu-registro").slideUp("slow",
					function(){
						$.ajax({
							url:URL_PAGE+"InscripcionLibre/Finalizar.php",
							data : {idusuario : obj.idusuario},
							type:"post",
							success:function(data){
								$(".formu-registro").html(data);
								$(".formu-registro").slideDown();
							}					
						});
					});								
						
				}
			});
			
			return false;
		});	
		
				var config = {
			toolbar:
			[
				['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', 'Table', '-', 'Link', 'Unlink'], ['UIColor']
			]
		};
		
		$('#resena').ckeditor(config);			
	});	
</script>
    <script src="<?php echo INI_URL;?>Scripts/ckeditor_3.6.2/ckeditor.js" type="text/javascript"></script>
    <script src="<?php echo INI_URL;?>Scripts/ckeditor_3.6.2/adapters/jquery.js" type="text/javascript"></script>
<div class="container_22 registro-paper" >


		<div class="formu-registro">
		<?php
			include_once "Form.php";
		?>
		</div>

	
</div>
<?php 
include_once '../Shared/footer.php';
?>